// +----------------------------------------------------------------------
// | ILDP-three-dimensional系统 [ 致力于通过产品和服务，帮助商家高效化开拓市场 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.lyltop.top All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 这不是一个自由软件，不允许对程序代码以任何形式任何目的的再发行
// +----------------------------------------------------------------------
// | Author: 彦麟工作室 <yanlinstudio@126.com>
// +----------------------------------------------------------------------
// | Name: 刘彦麟
// +----------------------------------------------------------------------
// | FILE_NAME: threeDimensional.ts
// +----------------------------------------------------------------------
// | Date: 2022/6/15 09:42
// +----------------------------------------------------------------------

import {defineStore} from 'pinia';
import {Object3D} from "three/src/Three";

export const useThreeDimensional = defineStore("threeDimensional",
    {
        state: () => ({
            layerList: [],
            element:{},
        }),
        getters: {
            getLayerList(): any {
                return this.layerList
            },
            getElement():any {
                return this.element
            }
        },
        actions: {
            setLayerList(data: any) {
                this.layerList = data;
            },
            setElement(data: Object3D): Object3D {
                return this.element = data;
            }
        }
    })
